﻿using System;
using Softserve.NumberToWords.Abstract;
using Softserve.NumberToWords.Concrete;

namespace Softserve.NumberToWords
{
    class Program
    {
        static void Main(string[] args)
        {
            ConvertDictionaryBase d = new EnglishDictionary();
            NumberToWordsConverter n = new NumberToWordsConverter(d);
            int number = 1;
            int.TryParse(Console.ReadLine(), out number);
            Console.WriteLine(n.Convert(number));
            n.InternalDictionary = new DeutschDictionary();
            Console.WriteLine(n.Convert(number));
            Console.ReadLine();
        }
    }
}
